package domain;

import builder.database.Column;
import builder.database.Table;

public class Address implements Table {

	public static final Table TABLE = new Address();
	
	public static final Column
		ID			= new Column(TABLE, "id"),
		STREET 		= new Column(TABLE, "street"),
		CITY		= new Column(TABLE, "city"),
		STUDENT_ID	= new Column(TABLE, "student_id");
		
	
	private String street;
	private String city;
	
	public Address() {}
	
	public Address(String street, String city) {
		this.street = street;
		this.city = city;
	}
	
	public String getCity() {
		return city;
	}
	
	public String getStreet() {
		return street;
	}
	
	public void setCity(String city) {
		this.city = city;
	}
	
	public void setStreet(String street) {
		this.street = street;
	}

	@Override
	public String getTableName() {
		return "address";
	}

	@Override
	public String getTableShortName() {
		return "addr";
	}
}
